package com.neusoft.ch7.hw.test04;

public class SalaryEmployee extends ColaEmployee {
	// 子类新增属性
	// 月薪
	private double empSalary;
	// 子类行为方法

	@Override
	public double getSalary(int month) {
		// 计算当前员工的每月工资
		double mothSalary = empSalary + super.getSalary(month);
		return mothSalary;
	}

	public SalaryEmployee(String empName, int empBirthdayMonth, double empSalary) {
		super(empName, empBirthdayMonth);
		this.empSalary = empSalary;
	}
	
}
